<?php
	require('config.php');
	$title = $_POST['title'];
	$vsID  = $_POST['vsID'];
  $class = $_POST['class'];
	$viDES = $_POST['viDES'];
	$image = $_POST['image'];
//		 $title="RRR";
//		 $vsID=12;
//		 $viDES="rrrr";
//		 $image= "Fdfs.gif";
	$insert_query = "insert into vote_item (title,vsID,viDES,image,class)values('$title','$vsID','$viDES','$image','$class')";
	$result_query = mysql_query($insert_query);
	if($result_query>0){
		$arr['success']=1;
	}else{
		$arr['success']=0;
	}
	echo json_encode($arr);
?>